module.exports = app => {
    const mongoose = app.mongoose;
    const Schema = mongoose.Schema;
    const FileUploadSchema = new Schema({
        type: String,
        url: String,
        fileName: String,
        creator: { type: Schema.Types.ObjectId, ref: 'User' }, // 创建者
    }, { timestamps: { createdAt: 'createDate', updatedAt: 'updateDate' } });
    return mongoose.model('File', FileUploadSchema);
};